#include<stdio.h>
#include<unistd.h>
#include<sys/types.h>

int main()
{
  while(1)
  {
    pid_t pid = getpid();
    pid_t ppid = getppid();
    while(1)
    {
      printf("this is myprocess, PID : %d, PPID : %d\n", pid, ppid);
      sleep(1);
    }
  }

  return 0;
}


//int main()
//{
//  pid_t id = getpid();
//  printf("myprocess pid : %d\n", id);
//
////  while(1)
////  {
////    printf("i am process\n");
////    sleep(1);
////  }
//  return 0
//  }

